package com.pz.cloud.framework.base.service;

import com.pz.cloud.framework.base.annotation.BizAuth;
import com.pz.cloud.framework.base.model.BaseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * 基础控制层公共类
 * 3hmzz
 */
public interface BaseBizController<T>{


    @RequestMapping("/findList")
    @ResponseBody
    @BizAuth
    BaseResult findList(@RequestBody Map param);

    @RequestMapping(value = "/findPage")
    @ResponseBody
    @BizAuth
    BaseResult findPage(@RequestBody Map param);

    @RequestMapping("/findById")
    @ResponseBody
    BaseResult findById(@RequestBody Map<String,String> parms);

    @PostMapping(value = "/delete")
    @ResponseBody
    BaseResult delete(@RequestBody Map<String,String> param);

    @PostMapping("/save")
    @ResponseBody
    BaseResult save(@RequestBody Map<String,String> param);


}
